package cn.sczc.jh.client.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

@TableName("equipment")
public class Equipment {
	
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	
	@TableId(value = "oid", type = IdType.INPUT)
	private String oid;
	
	@TableField(value = "create_time")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	@TableField(value = "update_time")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	
	@TableField(value = "create_user")
	private String createUser;
	
	@TableField(value = "equ_no")
	private String equNo;//设备编号
	
	@TableField(value = "equ_type")
	private String equType;//设备类型'JH20','JH81'
	
	@TableField(value = "maintenance_date")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date maintenanceDate;//维保日期
	
	@TableField(value = "production_date")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date productionDate;//生产日期
	
	@TableField(value = "equ_lat")
	private Double equLat;//设备维度
	
	@TableField(value = "equ_lon")
	private Double equLon;//设备经度
	
	@TableField(value = "maintenance_unit")
	private String maintenanceUnit;//维保单位
	
	@TableField(value = "contacts")
	private String contacts;//联系人
	
	@TableField(value = "contact_phone")
	private String contactPhone;//联系电话
	
	@TableField(value = "remarks")
	private String remarks;//备注
	
	@TableField(exist = false)
	private String state;//状态正常、还有15（14,13,12）天到期，已过期

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getEquNo() {
		return equNo;
	}

	public void setEquNo(String equNo) {
		this.equNo = equNo;
	}

	public String getEquType() {
		return equType;
	}

	public void setEquType(String equType) {
		this.equType = equType;
	}

	public Date getMaintenanceDate() {
		return maintenanceDate;
	}

	public void setMaintenanceDate(Date maintenanceDate) {
		this.maintenanceDate = maintenanceDate;
	}

	public Date getProductionDate() {
		return productionDate;
	}

	public void setProductionDate(Date productionDate) {
		this.productionDate = productionDate;
	}

	public Double getEquLat() {
		return equLat;
	}

	public void setEquLat(Double equLat) {
		this.equLat = equLat;
	}

	public Double getEquLon() {
		return equLon;
	}

	public void setEquLon(Double equLon) {
		this.equLon = equLon;
	}

	public String getMaintenanceUnit() {
		return maintenanceUnit;
	}

	public void setMaintenanceUnit(String maintenanceUnit) {
		this.maintenanceUnit = maintenanceUnit;
	}

	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	

}
